<template>
  <wd-row :gutter="10">
    <wd-col
      v-for="item in btnList"
      :key="item.name"
      custom-class="bg-orange-200 h-60px rounded-4 text-center leading-60px mt-16px"
      :span="12"
    >
      <div @click="jump(item.path)">
        {{ item.name }}
      </div>
    </wd-col>
  </wd-row>
</template>

<script setup lang="ts">
import { jump, checkUpdate } from '@/utils/common';

const btnList = ref([
  {
    name: '日常打卡',
    path: '/pages/dailyCheck/index'
  },
  {
    name: '四象限工具',
    path: '/pages/fourQuadrant/index'
  }
]);

onShow(() => {
  console.log('检查版本更新');
  checkUpdate();
});

onShareAppMessage(() => ({
  title: '首页',
  path: '/pages/index/index'
}));
</script>

<style lang="scss" scoped></style>
